<? startScript('jquery, jquery.tools'); ?><script type="text/javascript">
	jQuery(function($) { 
		$("ul.jt-tabs").tabs("div.jt-panes > div");
	});
</script><? endScript(); ?>

<form action="" method="post">

	<ul class="jt-tabs"><?

		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes">
	
		<? $t = 'style="display:block"';
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" <?=$t?>>

				<div><strong><?=t('Title', 'cpn')?></strong><br />
					<textarea name="title[<?=$l?>]" class="xwide no-editor"><?=dat('data', 'data', $l, 'title')?></textarea>
				</div>

				<div><strong><?=t('Keywords', 'cpn')?></strong><br />
					<textarea name="keywords[<?=$l?>]" class="xwide no-editor"><?=dat('data', 'data', $l, 'keywords')?></textarea>
				</div>

				<div><strong><?=t('Description', 'cpn')?></strong><br />
					<textarea name="description[<?=$l?>]" class="xwide no-editor"><?=dat('data', 'data', $l, 'description')?></textarea>
				</div>
				
			</div><? 
		
		$t = ''; } ?>
	
	</div>

	<p><input type="submit" name="editor_save" value="<?=t('Save', 'cpn')?>" /></p>

</form>